/*****************
* Ant Scriptdef/Javascript routine for downloading
* resources in runtine, but only if no version
* of this file is available localy.
*
* @version 0.1
* @author Arnoud ten Hoedt / Roonaan
*********************/

importClass(java.io.File);
importClass(java.net.URL);

var fDest = new File(attributes.get("dest"));
if(!fDest.exists()) {
	var xGet = project.createTask("get");
	xGet.setSrc(new URL(attributes.get("src")));
	xGet.setDest(fDest);
	xGet.execute();
}